package com.lsk.service;

import com.lsk.internalcommon.DTO.Car;
import com.lsk.internalcommon.DTO.DriverCarBindingRelationship;
import com.lsk.internalcommon.DTO.DriverUser;
import com.lsk.internalcommon.DTO.ResponseResult;
import com.lsk.remote.ServiceDriverUserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;

@Service
public class DriverUserService {
    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    public ResponseResult addDriverUser(DriverUser driverUser){
        return serviceDriverUserClient.addDriverUser(driverUser);
    }

    public ResponseResult updateDriverUser(DriverUser driverUser){
        return serviceDriverUserClient.updateDriverUser(driverUser);
    }

    public ResponseResult addCar(Car car){
        return serviceDriverUserClient.addCar(car);
    }

    public ResponseResult bind(DriverCarBindingRelationship relationship){
        return serviceDriverUserClient.bind(relationship);
    }

    public ResponseResult unbind(DriverCarBindingRelationship relationship){
        return serviceDriverUserClient.unbind(relationship);
    }
}
